package Thread;

import java.util.Scanner;

public class Demo14 {
     public static volatile  int isQuit=0;
    public static void main(String[] args) throws InterruptedException {
        Thread t1=new Thread(()->{
            while (isQuit==0){

            }
            System.out.println("t1进程结束");
        });
        t1.start();
        Thread.sleep(1000);
        System.out.println("请输入isQuit");
        Scanner scanner=new Scanner(System.in);
        isQuit= scanner.nextInt();

    }
}
